<!DOCTYPE html>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width">

<title><?php echo $page_title ?></title>

<!-- Twitter Bootstrap -->
<link rel="stylesheet" href="<?php echo base_url('assets/css/bootstrap.min.css') ?>">
<link rel="stylesheet" href="<?php echo base_url('assets/css/bootstrap-responsive.min.css') ?>">

<!-- Animate CSS -->
<link rel="stylesheet" href="<?php echo base_url('assets/css/animate.css') ?>">

<!-- Global Stylesheet -->
<link rel="stylesheet" href="<?php echo base_url('assets/css/style.css') ?>">

<!-- Symbolset Icon Font -->
<link rel="stylesheet" href="<?php echo base_url('assets/webfonts/ss-symbolicons-block.css') ?>">
<script src="<?php echo base_url('assets/webfonts/ss-symbolicons.js') ?>"></script>

<!-- Typekit Webfonts -->
<script src="//use.typekit.net/yzp4gcs.js"></script>
<script>try{Typekit.load();}catch(e){}</script>

<header>
  <div class="container">
    <div class="row-fluid">
      <div class="span1">
        <h1><a href="<?php echo site_url() ?>">STUNE</a></h1>
      </div> <!-- div.span2 -->
      
      <div class="pull-right">
          <?php if ($this->session->userdata('login')) : ?>
            <div class="btn-group">
              <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                <?php echo $this->session->userdata('email') ?>
                <span class="caret"></span>
              </a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo site_url('dashboard') ?>">Dashboard</a></li>
                <li><a href="<?php echo site_url('settings/recharge') ?>">Recharge</a></li>
                <li><a href="<?php echo site_url('settings') ?>">Settings</a></li>
                <li class="divider"></li>
                <li><a href="<?php echo site_url('logout') ?>">Logout</a></li>
              </ul>
            </div>
          <?php else : ?>
            <a href="<?php echo site_url('register') ?>" class="btn btn-danger">Register</a>
            <a href="<?php echo site_url('login') ?>" class="btn">Login</a>
          <?php endif ?>
      </div> <!-- div.span3 offset7 -->
    </div> <!-- div.row -->
  </div> <!-- div.container -->
</header>
